package com.ccsc.auth.entity;

/**
 * Created by XingWen on 2017/3/2.
 */
public class ShiroResource {
    private Integer resourceId;
    private String resourceContent;
    private String resourceDescription;
    private Integer resourceParentId;
    private String resourceIcon;
    private String resourceType;

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourceContent() {
        return resourceContent;
    }

    public void setResourceContent(String resourceContent) {
        this.resourceContent = resourceContent;
    }

    public String getResourceDescription() {
        return resourceDescription;
    }

    public void setResourceDescription(String resourceDescription) {
        this.resourceDescription = resourceDescription;
    }

    public Integer getResourceParentId() {
        return resourceParentId;
    }

    public void setResourceParentId(Integer resourceParentId) {
        this.resourceParentId = resourceParentId;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof ShiroResource) {
            ShiroResource shiroResource = (ShiroResource) o;
            return this.resourceId.equals(shiroResource.resourceId)
                    && this.resourceContent.equals(shiroResource.resourceContent)
                    && this.resourceDescription.equals(shiroResource.resourceDescription)
                    && this.resourceParentId.equals(shiroResource.resourceParentId);
        }
        return super.equals(o);
    }

    public String getResourceIcon() {
        return resourceIcon;
    }

    public void setResourceIcon(String resourceIcon) {
        this.resourceIcon = resourceIcon;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }
}
